package xin.marcher.module.quality.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.mapstruct.Mapper;
import xin.marcher.module.quality.domain.dto.ItemQualityControlSurveyTaskDTO;
import xin.marcher.module.quality.domain.dto.ItemQualityControlSurveyTaskToSellerDTO;
import xin.marcher.module.quality.domain.entity.ItemQualityControlSurveyTaskDO;

/**
 *
 */
@Mapper(componentModel = "spring")
public interface SurveyTaskConverter {
    /**
     * 转换分页查询调查任务列表
     *
     * @param surveyTaskDOPage
     * @return
     */
    Page<ItemQualityControlSurveyTaskDTO> converterPageResult(Page<ItemQualityControlSurveyTaskDO> surveyTaskDOPage);

    /**
     * 转换分页查询调查单信息，卖家侧
     *
     * @param surveyTaskDOPage
     * @return
     */
    Page<ItemQualityControlSurveyTaskToSellerDTO> converterSellerPageResult(Page<ItemQualityControlSurveyTaskDO> surveyTaskDOPage);
}
